//
//  IOosObjects.h
//  oos4ios
//
//  Created by Pablo Gonzalez on 3/2/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@interface OosObject : NSManagedObject {
    
    BOOL mProcessing;
    
}

+ (id) create;
+ (id) createFromSet: (NSArray *) set;
/**
 To access an object as a singleton
 */
+ (id) getInstance;

+ (NSArray *)objectsWithPredicate: (id)stringOrPredicate, ...;
+ (NSArray *)objectsfromEntity: (NSEntityDescription *) entity 
               withPredicate: (id)stringOrPredicate, ...;


+ (id)objectWithPredicate: (id)stringOrPredicate, ...;
+ (id)objectfromEntity: (NSEntityDescription *) entity 
         withPredicate: (id)stringOrPredicate, ...;

+ (NSString *) className;

+ (NSEntityDescription *) entityDescription;

@property (nonatomic) BOOL processing;

@end

